package connect4client.commands;

import messages.Message;
import messages.WallMessage;


/**
 * The Wall command.
 * 
 * This command will handle Wall messages.
 */
public class WallCommand extends Command {

	public WallCommand(Message message) {
		super(message);	
	}

	@Override
	public void execute() {
		WallMessage wallMessage = (WallMessage) this.message;
		guiMediator.wall(wallMessage.getSenderLogin(), wallMessage.getContents());
	}
}

